package top.fzqblog.music.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import top.fzqblog.firstapp.R;


/**
 * Created by 抽离 on 2017/10/26 0026.
 */

public class SongListAdapter extends BaseQuickAdapter<top.fzqblog.model.List, BaseViewHolder> {

    public SongListAdapter(int layoutResId, @Nullable List<top.fzqblog.model.List> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, top.fzqblog.model.List music) {
        baseViewHolder.setText(R.id.musicName, music.getSongName());
        baseViewHolder.setText(R.id.musicSinger, music.getArtist());
    }
}
